/*
 * GeneralInfoView.h
 *
 *  Created on: 20/06/2014
 *      Author: javier
 */

#ifndef GENERALINFOVIEW_H_
#define GENERALINFOVIEW_H_

#include "Properties.h"
#include "SDLWindow.h"

class BZPView;

enum InfoStates{
	END_GAME, NEXT_MATCH
};

class GeneralInfoView {
public:
	GeneralInfoView(BZPView* view, SDLWindow* window);
	void handleClick(int x, int y);
	void render();
	virtual ~GeneralInfoView();
	const std::string& getInfo() const;
	void setInfo(const std::string info);
	InfoStates getState() const;
	void setState(InfoStates state);

private:
	std::string info;
	InfoStates state;
	BZPView* view;
	SDLWindow* window;
	SDL_Texture *texture;
	SDL_Rect geometry;
	Properties properties;
};

#endif /* GENERALINFOVIEW_H_ */
